﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommandReceiver
{
    public class EventQueue
    {
        Queue<PhoneEvent> events = new Queue<PhoneEvent>();

        public void Enqueue(PhoneEvent e)
        {
            events.Enqueue(e);
        }

        public PhoneEvent Dequeue()
        {
            return events.Dequeue();
        }
    }

    public class PhoneEvent
    {
        public EventType Type{get;set;}

        public float X{get;set;}

        public float Y{get;set;}

        public float Z{get;set;}

        public string Key{get;set;}
    }

    public enum EventType
    {
        Keyboard,
        Mouse
    }
}
